<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ClaraGenomicsAnalysis: Internal CUDA utilities package</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ClaraGenomicsAnalysis
   &#160;<span id="projectnumber">0.4.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Internal CUDA utilities package</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gaded61355db08f1d76bc24edc008d4224"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__cudautils.html#gaded61355db08f1d76bc24edc008d4224">CGA_NVTX_RANGE</a>(varname,  label)</td></tr>
<tr class="memdesc:gaded61355db08f1d76bc24edc008d4224"><td class="mdescLeft">&#160;</td><td class="mdescRight">Dummy implementation for CGA_NVTX_RANGE macro.  <a href="group__cudautils.html#gaded61355db08f1d76bc24edc008d4224">More...</a><br /></td></tr>
<tr class="separator:gaded61355db08f1d76bc24edc008d4224"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga3769a812992df47886894f48f26edf6f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__cudautils.html#ga3769a812992df47886894f48f26edf6f">claragenomics::cudautils::gpu_assert</a> (cudaError_t code, const char *file, int line)</td></tr>
<tr class="separator:ga3769a812992df47886894f48f26edf6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga161535c48fe399e086ac6277b527fb41"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__cudautils.html#ga161535c48fe399e086ac6277b527fb41">CGA_CU_CHECK_ERR</a>(ans)</td></tr>
<tr class="memdesc:ga161535c48fe399e086ac6277b527fb41"><td class="mdescLeft">&#160;</td><td class="mdescRight">Log on CUDA error in enclosed expression.  <a href="group__cudautils.html#ga161535c48fe399e086ac6277b527fb41">More...</a><br /></td></tr>
<tr class="separator:ga161535c48fe399e086ac6277b527fb41"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga161535c48fe399e086ac6277b527fb41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga161535c48fe399e086ac6277b527fb41">&#9670;&nbsp;</a></span>CGA_CU_CHECK_ERR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CGA_CU_CHECK_ERR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ans</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">{                                                                    <a class="code" href="group__cudautils.html#ga3769a812992df47886894f48f26edf6f">\</a></div>
<div class="line"><a class="code" href="group__cudautils.html#ga3769a812992df47886894f48f26edf6f">        claragenomics::cudautils::gpu_assert</a>((ans), __FILE__, __LINE__); \</div>
<div class="line">    }</div>
</div><!-- fragment -->
<p>Log on CUDA error in enclosed expression. </p>

</div>
</div>
<a id="gaded61355db08f1d76bc24edc008d4224"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaded61355db08f1d76bc24edc008d4224">&#9670;&nbsp;</a></span>CGA_NVTX_RANGE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CGA_NVTX_RANGE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">varname, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">label&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Dummy implementation for CGA_NVTX_RANGE macro. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">varname</td><td>Unused variable </td></tr>
    <tr><td class="paramname">label</td><td>Unused variable </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga3769a812992df47886894f48f26edf6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3769a812992df47886894f48f26edf6f">&#9670;&nbsp;</a></span>gpu_assert()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void claragenomics::cudautils::gpu_assert </td>
          <td>(</td>
          <td class="paramtype">cudaError_t&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>gpu_assert Logs and/or exits on cuda error</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>The CUDA status code of the function being asserted </td></tr>
    <tr><td class="paramname">file</td><td>Filename of the calling function </td></tr>
    <tr><td class="paramname">line</td><td>File line number of the calling function </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<div class="ttc" id="agroup__cudautils_html_ga3769a812992df47886894f48f26edf6f"><div class="ttname"><a href="group__cudautils.html#ga3769a812992df47886894f48f26edf6f">claragenomics::cudautils::gpu_assert</a></div><div class="ttdeci">void gpu_assert(cudaError_t code, const char *file, int line)</div><div class="ttdef"><b>Definition:</b> cudautils.hpp:50</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
